/*  Intervention Record Page Styles
文件名称：intervention_record.css 
存储路径：frontend/static/css/intervention_record.css
*/

/* 修复历史表格区域高度塌陷问题 */
#history-table-area .card-body {
  min-height: 200px;
}
/* 历史表格区域脱离 flex 容器，普通流布局，防止塌陷 */
#history-table-area {
  display: none;
  min-height: 200px;
  width: 100%;
}
#history-table-area.show {
  display: block;
}
#history-table-area .card {
  min-height: 150px;
}
#scrollable-content {
  min-height: 300px;
  width: 100%;
  display: block;
  overflow-y: auto;
  padding: 20px;
  background-color: #f8f9fa;
}
/* frontend/static/css/intervention_record.css */

body {
  background-color: #f8f9fa;
}
.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.card {
  margin-bottom: 20px;
  border: 1px solid #e3e6f0;
  border-radius: 8px;
}
.card-header {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  border-bottom: 1px solid #e3e6f0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.card-body {
  padding: 20px;
}
.form-label {
  font-weight: 600;
}
.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}
/* 覆盖固定查询区样式，仅针对本页面 */
#fixed-search-container {
  /*position: fixed;
  top: 60px; /* 顶部导航下方 
  left: var(--current-sidebar-width); /* 使用动态变量 
  width: calc(100% - var(--current-sidebar-width)); /* 动态计算宽度 */
  z-index: 1000;
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 修复滚动容器样式 */
#scrollable-content {
  overflow-y: auto;
  padding: 20px;
  background-color: #f8f9fa;
}

/* 恢复到原始状态，不包含任何 #history-table-area 或 #history-table 的补丁 */

#pagination-bar button.page-btn {
  margin: 0 2px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}
#pagination-bar button.page-btn.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}
#pagination-bar button.page-btn:disabled {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
}
#pagination-bar span {
  display: inline-block;
  padding: 0 5px;
  color: #888;
}

.student-info-bar-row {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1.5rem;
}
.student-info-bar-row.show {
  display: flex;
}
.student-info-bar-row .me-4 {
  margin-right: 1.5rem !important;
}